package player_single

import (
	"gddgame.cc/galaxy/common/dsl/game"
)

const SingleLeaderboard = "SingleLeaderboard"

var (
	Provider = game.ModuleProvider{
		Name: "player_single",

		OnInit: func(env *game.Environment) error {
			var err error
			if _, err = env.RegisterModel(PlayerSingleName, &PlayerSingle{}); err != nil {
				return err
			}
			if _, err = env.RegisterModel(PlayerUserSingleName, &PlayerUserSingle{}); err != nil {
				return err
			}
			return nil
		},
	}
)
